package com.goods.business.controller;

import com.goods.business.pojo.Bizsupplier;
import com.goods.business.service.SupplierService;
import com.goods.common.vo.business.SupplierVO;
import org.apache.ibatis.annotations.Lang;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SupplierController {
    @Autowired
    SupplierService supplierService;
    public List<Bizsupplier> findSupplierList(Integer pageNum, Integer pageSize, String name) {
       return supplierService.findSupplierList(pageNum,pageSize,name);
    }

    public void supplierAdd(SupplierVO supplierVO) {
        supplierService.supplierAdd(supplierVO);
    }

    public Bizsupplier selectSupplierById(Integer id) {
        return supplierService.selectSupplierById(id);
    }

    public void updateSupplierById(Bizsupplier supplierVO, Integer id) {
        supplierService.updateSupplierById(supplierVO,id);
    }

    public void delSupplierById(Integer id) {
        supplierService.delSupplierById(id);
    }
}
